package com.cn.jdia.dc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cn.jdia.dc.dao.ServerquotaMapper;
import com.cn.jdia.dc.model.Serverquota;
import com.cn.jdia.dc.service.IServerquotaService;

@Service("svquotaService")
public class IServerquotaServiceImpl implements IServerquotaService{

	@Resource
	private ServerquotaMapper serverquotaDao;
	
	@Override
	public Serverquota getServerquotaByServer(String serverName, String ip) {
		return this.serverquotaDao.selectByServer(serverName, ip);
	}

	@Override
	public List<Serverquota> queryAll() {
		return this.serverquotaDao.selectAll();
	}

	@Override
	public Serverquota selectServerQuotaByPrimaryKey(String serverName) {
		return this.serverquotaDao.selectByPrimaryKey(serverName);
	}

}
